// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Home1 from '@/modules/module2/module2-tudi/views/Home.vue'; // 假设你有一个 Home.vue 作为首页
import RevolutionaryHeroes from '@/modules/module2/module2-tudi/views/RevolutionaryHeroes.vue'; // 革命英雄页面
import LatestDocuments from '@/modules/module2/module2-tudi/views/LatestDocuments.vue'; // 最新文献页面
import VideoMaterials from '@/modules/module2/module2-tudi/views/VideoMaterials.vue'; // 影视资料页面
import AudioMaterials from '@/modules/module2/module2-tudi/views/AudioMaterials.vue'; // 音频资料页面
const routes2 = [
  {
    path: '/home1',
    name: 'Home1',
    component: Home1
  },
  {
    path: '/revolutionary-heroes',
    name: 'RevolutionaryHeroes',
    component: RevolutionaryHeroes
  },
  {
    path: '/latest-documents',
    name: 'LatestDocuments',
    component: LatestDocuments
  },
  {
    path: '/video-materials',
    name: 'VideoMaterials',
    component: VideoMaterials
  },
  {
    path: '/audio-materials',
    name: 'AudioMaterials',
    component: AudioMaterials
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes: routes2
})

export{routes2}
export default router
